Laravel自定义分页样式

namespace App\Http\Controllers;
use DB;
use App\Http\Controllers\Controller;
class UserController extends Controller
{    /**
     * 显示应用中的所有用户
     *
     * @return Response     */
    public function index()
    {        
    $users = DB::table('users')->paginate(15);        
    return view('user.index', ['users' => $users]);
    }
}
//blade模板展示
 <div id="pull_right">
       <div ="pull-right">!! ->render() !!</div>
 </div>
//CSS样式
<style type="text/css">        
            text-align:.pull-.: inline--left: 0: 20px 0-radius:.pagination >:.pagination > li > a,
        .pagination > li >:::-left: --height: 1.42857143: 
            text-decoration:-color: 
            border: 1px solid .pagination > li:first-child > a,
        .pagination > li:first-child >-left: 0-top-left-radius:-bottom-left-radius:.pagination > li:last-child > a,
        .pagination > li:last-child >-top-right-radius:-bottom-right-radius:.pagination > li > a:hover,
        .pagination > li > span:hover,
        .pagination > li > a:focus,
        .pagination > li > span:: 
            background-color: 
            border-color: .pagination > .active > a,
        .pagination > .active > span,
        .pagination > .active > a:hover,
        .pagination > .active > span:hover,
        .pagination > .active > a:focus,
        .pagination > .active > span:-index: 2: 
            cursor: -color: 
            border-color: .pagination > .disabled > span,
        .pagination > .disabled > span:hover,
        .pagination > .disabled > span:focus,
        .pagination > .disabled > a,
        .pagination > .disabled > a:hover,
        .pagination > .disabled > a:: 
            cursor: not--color: 
            border-color: .:
    </style>
阅读 37

Comments