Html CSS 文字垂直居中,多行文字垂直居中
方式一、如果仅仅只是单行文字居中,CSS样式如下.box { width: 300px; height: 300px; background: #ddd; line-height: 300px;}方式二、如果是不能确定的行数,实现多选垂直居中,CSS样式和Html如下.box { display: table; background-color: #f2f2f…
方式一、如果仅仅只是单行文字居中,CSS样式如下.box { width: 300px; height: 300px; background: #ddd; line-height: 300px;}方式二、如果是不能确定的行数,实现多选垂直居中,CSS样式和Html如下.box { display: table; background-color: #f2f2f…
效果图以下是源码!DOCTYPE htmlhtml lang="en"headmeta charset="UTF-8"meta name="viewport" content="width=device-width, initial-scale=1.0"title页面点击弹出文字/titlestylebody{/* background-color: rgb(35,35,35);*/}span{/* 让弹出来的文字不被选…
1、从NuGet里面安装Spire.OCR2、安装之后,找到安装路径下,默认生成的packages文件夹,复制该文件夹路径下的 6 个dll文件到程序的根目录 3、调用读取方法 OcrScanner scanner = new OcrScanner();string path = @"C:\1.png";scanner.Scan(path);string s = scanner.Text.T…
//using PaddleOCRSharp;//using System.Drawing;public class PaddleOCREngineHandler{//本文来自www.luofenming.com public static PaddleOCREngine engine = CreateOCRParameter(); public static PaddleOCREngine CreateOCRParameter() { OCRParame…
核心代码(在nuget上安装 Tesseract)public string TesseractOCR(Bitmap image){ //Tesseract.Page chi_sim为中文训练数据包 Page page = new TesseractEngine(AppDomain.CurrentDomain.BaseDirectory + @"\tessdata", "chi_sim", EngineMode.Default).Process…