按钮连续

时间:2017-05-22 15:53:23

标签: html css twitter-bootstrap

我想把按钮放在一行。而且我不想要导航栏,那么如何进行更改以使按钮保持在同一行?我已经分享了我必须放置按钮This is the OUTPUT

的页面截图

以下是我工作的代码:

    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li class="active"><a class="btn btn-primary" href="<?= base_url() ?>admin_voting/create">Add Vote</a></li>
                <li><a class="btn btn-success" href="<?= base_url() ?>admin_voting">Vote lists</a></li>
                <li><a class="btn btn-info" href="<?= base_url() ?>voting">Show Votes</a></li>
</ul>           
        </div>
       </div>

另外,我在按钮旁边有一些像点一样的公告。如何删除它?

2 个答案:

答案 0 :(得分:0)

在CSS中,您可以使用以下内容:

Node

内联会导致ul, ol { display: inline; list-style-type: none; } ul彼此相邻。
列表样式类型下的无点会使点消失。

另外:在ol标记内使用ulol标记。

答案 1 :(得分:0)

在下面添加css类以删除点:

<div class="row">
    <div class="col-sm-3 col-md-2 sidebar">
        <ul class="list-unstyled">
            <li>...
        </ul>
    </div>
</div>

另外,使用以下命令修复列表样式:

a:4:{i:0;s:72:"Unknown entity type: Magento\Catalog\Api\Data\ProductInterface requested";i:1;s:9155:"#0 /data/sites/web/brownequipmenteu/www/vendor/magento/module-catalog/Model/Attribute/ScopeOverriddenValue.php(121): Magento\Framework\EntityManager\MetadataPool->getMetadata('Magento\\Catalog...')
#1 /data/sites/web/brownequipmenteu/www/vendor/magento/module-catalog/Model/Attribute/ScopeOverriddenValue.php(104): Magento\Catalog\Model\Attribute\ScopeOverriddenValue->initAttributeValues('Magento\\Catalog...', Object(Magento\Catalog\Model\Product\Interceptor), 0)
#2 /data/sites/web/brownequipmenteu/www/vendor/magento/module-catalog/Model/AbstractModel.php(325): Magento\Catalog\Model\Attribute\ScopeOverriddenValue->getDefaultValues('Magento\\Catalog...', Object(Magento\Catalog\Model\Product\Interceptor))
#3 /data/sites/web/brownequipmenteu/www/vendor/magento/module-downloadable/Ui/DataProvider/Product/Form/Modifier/UsedDefault.php(84): Magento\Catalog\Model\AbstractModel->getAttributeDefaultValue('links_title')
#4 /data/sites/web/brownequipmenteu/www/vendor/magento/module-downloadable/Ui/DataProvider/Product/Form/Modifier/UsedDefault.php(66): Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\UsedDefault->titleUsedDefault('links_title')
#5 /data/sites/web/brownequipmenteu/www/vendor/magento/module-downloadable/Ui/DataProvider/Product/Form/Modifier/Composite.php(81): Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\UsedDefault->modifyMeta(Array)
#6 /data/sites/web/brownequipmenteu/www/vendor/magento/module-catalog/Ui/DataProvider/Product/Form/ProductDataProvider.php(68): Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Composite->modifyMeta(Array)
#7 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Element/UiComponentFactory.php(269): Magento\Catalog\Ui\DataProvider\Product\Form\ProductDataProvider->getMeta()
#8 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Element/UiComponentFactory.php(164): Magento\Framework\View\Element\UiComponentFactory->mergeMetadata('product_form', Array, false)
#9 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Layout/Generator/UiComponent.php(125): Magento\Framework\View\Element\UiComponentFactory->create('product_form', NULL, Array)
#10 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Layout/Generator/UiComponent.php(93): Magento\Framework\View\Layout\Generator\UiComponent->generateComponent(Object(Magento\Framework\View\Layout\Data\Structure), 'product_form', Array, Object(Magento\Framework\View\Layout\Interceptor))
#11 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Layout/GeneratorPool.php(86): Magento\Framework\View\Layout\Generator\UiComponent->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#12 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Layout.php(327): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#13 /data/sites/web/brownequipmenteu/www/var/generation/Magento/Framework/View/Layout/Interceptor.php(89): Magento\Framework\View\Layout->generateElements()
#14 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements()
#15 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Page/Builder.php(55): Magento\Framework\View\Layout\Builder->generateLayoutBlocks()
#16 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks()
#17 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Layout.php(244): Magento\Framework\View\Layout\Builder->build()
#18 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/View/Layout.php(859): Magento\Framework\View\Layout->build()
#19 /data/sites/web/brownequipmenteu/www/var/generation/Magento/Framework/View/Layout/Interceptor.php(414): Magento\Framework\View\Layout->getBlock('menu')
#20 /data/sites/web/brownequipmenteu/www/vendor/magento/module-backend/Model/View/Result/Page.php(59): Magento\Framework\View\Layout\Interceptor->getBlock('menu')
#21 /data/sites/web/brownequipmenteu/www/vendor/magento/module-catalog/Controller/Adminhtml/Product/NewAction.php(71): Magento\Backend\Model\View\Result\Page->setActiveMenu('Magento_Catalog...')
#22 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/App/Action/Action.php(102): Magento\Catalog\Controller\Adminhtml\Product\NewAction->execute()
#23 /data/sites/web/brownequipmenteu/www/vendor/magento/module-backend/App/AbstractAction.php(226): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#24 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#25 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Catalog\Controller\Adminhtml\Product\NewAction\Interceptor->___callParent('dispatch', Array)
#26 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Adminhtml\Product\NewAction\Interceptor), Array, 'adminAuthentica...')
#27 /data/sites/web/brownequipmenteu/www/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#28 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Catalog\Controller\Adminhtml\Product\NewAction\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#29 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Adminhtml\Product\NewAction\Interceptor), Array, 'adminMassaction...')
#30 /data/sites/web/brownequipmenteu/www/vendor/magento/module-backend/App/Action/Plugin/MassactionKey.php(33): Magento\Catalog\Controller\Adminhtml\Product\NewAction\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#31 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Interception/Interceptor.php(142): Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Catalog\Controller\Adminhtml\Product\NewAction\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#32 /data/sites/web/brownequipmenteu/www/var/generation/Magento/Catalog/Controller/Adminhtml/Product/NewAction/Interceptor.php(26): Magento\Catalog\Controller\Adminhtml\Product\NewAction\Interceptor->___callPlugins('dispatch', Array, Array)
#33 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/App/FrontController.php(55): Magento\Catalog\Controller\Adminhtml\Product\NewAction\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#34 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#35 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#36 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#37 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#38 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/Interception/Interceptor.php(142): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#39 /data/sites/web/brownequipmenteu/www/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#40 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#41 /data/sites/web/brownequipmenteu/www/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#42 /data/sites/web/brownequipmenteu/www/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#43 {main}";s:3:"url";s:121:"/admin_16fmoi/catalog/product/new/set/4/type/simple/key/3935c8b29e0e01fcbfedaa426bea0abdd73f37e6fc358e2643cbb293e3cd038a/";s:11:"script_name";s:10:"/

请在此处查看Bootstrap文档:http://getbootstrap.com/css/#unstyled